<var_parse> : Parse Text (Variable Value)

This command parses input text (variable value).  Parts of the input text are expected to be delimited by characters (space, comma, new line, etc.) defined as a command parameter.  The parsed parts of the input text are saved in parameter variable (array).  In addition, each parsed part can be trimmed using characters defined.

Syntax: 

<var_parse>("Input", ôDelimitersö, ôTrim charactersö, VariablePieces, VariableNumOfPiecese)

Input
Text (or variable containing text) to be parsed.

Delimiters
Characters used to delimit input text (for example, dot, comma, space new line, etc.).

Trim characters
Characters used to trim each parsed part of the input text.


VariablePieces
Variable (array) that receives each input text piece parsed.

VariableNumOfPieces
Variable that receives the number of pieces.
 

Example: 

<#> This example shows how to use <var_parse> command
<#> The input text consisting from names delimited by comma
<#> will be parsed and each name will be shown in message box.
<cmds>
<var_parse>("Peter,  Paul,  John,   Jim  ",","," ",vName,vNumOfNames)
<begloop>(vNumOfNames)
   <msg>(100,100,"vName[_vLoopCounter0]","Message",1)
<endloop>